package com.jyk.blog.mapper;

import com.jyk.blog.po.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    List<User> findAll();
    User findByEmail(String email);
    User findByName(String name);
    User findById(int id);
    void insert(User user);
    void delete(User user);
    String getPermission(User user);
}
